import Vue from 'vue'
import Vuex from 'vuex'
import persist from 'vuex-persistedstate'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    navList: []
  },
  mutations: {
    addNavList(state, list) {
      state.navList = list
    }
  },
  actions: {
  },
  modules: {
  },
  plugins: [
    persist()
  ]
})
